import { http } from '@/package_tools/utils/request.js'
enum Urls {
	orderLists = 'mini/order/list',
	cancelOrder = 'mini/order/cancel',
	orderDetail = 'mini/order/detail',
	returnList = 'mini/order/return_list'
}

// 订单列表
export const orderLists = (params) => http.get(Urls.orderLists, params)

// 退货订单列表
export const returnList = (params) => http.get(Urls.returnList, params)

// 取消订单
export const cancelOrder = (data) => http.post(Urls.cancelOrder, data)

// 订单详情
export const orderDetail = (params) => http.get(Urls.orderDetail, params)